#ifndef _LEDCOLOR_H_
#define _LEDCOLOR_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "../Variants/variants.h"
#include "menu.h"
//24bit                           // G  R  B
#define LED_OFF                   0x00000000
#define LED_WHITE                 0x00FFFFFF
#define LED_RED                   0x0000FF00
#define LED_ORANGE                0x008CFF00
#define LED_YELLOW                0x00FFFF00
#define LED_GREEN                 0x00FF0000
#define LED_BLUE                  0x000000FF
#define LED_INDIGO                0x00004B82
#define LED_VIOLET                0x0000FEFE

//Color macro  //颜色宏定            /*R G B*/
#define COLOR_LIGHTPINK             0xFFB6C1  //浅粉
#define COLOR_PINK                  0xFFC0CB  //粉红
#define COLOR_CRIMSON               0xDC143C  //猩红
#define COLOR_LAVENDERBLUSH         0xFFF0F5  //脸红的淡
#define COLOR_PALEVIOLETRED         0xDB7093  //苍白的紫罗兰红色
#define COLOR_HOTPINK               0xFF69B4  //情的粉红
#define COLOR_DEEPPINK              0xFF1493  //深粉
#define COLOR_MEDIUMVIOLETRED       0xC71585  //适中的紫罗兰红色
#define COLOR_ORCHID                0xDA70D6  //兰花的紫
#define COLOR_THISTLE               0xD8BFD8
#define COLOR_PLUM                  0xDDA0DD  //李子
#define COLOR_VIOLET                0xEE82EE  //罗兰
#define COLOR_MAGENTA               0xFF00FF  //洋红
#define COLOR_FUCHSIA               0xFF00FF  //笼海(红色)
#define COLOR_DARKMAGENTA           0x8B008B  //深洋红色
#define COLOR_PURPLE                0x800080
#define COLOR_MEDIUMORCHID          0xBA55D3  //适中的兰花紫
#define COLOR_DARKVOILET            0x9400D3  //深紫罗兰
#define COLOR_DARKORCHID            0x9932CC  //深兰花紫
#define COLOR_INDIGO                0x4B0082  //靛青
#define COLOR_BLUEVIOLET            0x8A2BE2  //深紫罗兰的蓝
#define COLOR_MEDIUMPURPLE          0x9370DB  //适中的紫
#define COLOR_MEDIUMSLATEBLUE       0x7B68EE  //适中的板岩暗蓝灰
#define COLOR_SLATEBLUE             0x6A5ACD  //板岩暗蓝灰色
#define COLOR_DARKSLATEBLUE         0x483D8B  //深岩暗蓝灰色
#define COLOR_LAVENDER              0xE6E6FA  //熏衣草花的淡
#define COLOR_GHOSTWHITE            0xF8F8FF  //幽灵的白
#define COLOR_BLUE                  0x0000FF
#define COLOR_MEDIUMBLUE            0x0000CD  //适中的蓝
#define COLOR_MIDNIGHTBLUE          0x191970  //午的蓝色
#define COLOR_DARKBLUE              0x00008B  //深蓝
#define COLOR_NAVY                  0x000080  //海军
#define COLOR_ROYALBLUE             0x4169E1  //皇蓝
#define COLOR_CORNFLOWERBLUE        0x6495ED  //矢车菊的蓝色
#define COLOR_LIGHTSTEELBLUE        0xB0C4DE  //淡钢
#define COLOR_LIGHTSLATEGRAY        0x778899  //浅石板灰
#define COLOR_SLATEGRAY             0x708090  //石板
#define COLOR_DODERBLUE             0x1E90FF  //道蓝
#define COLOR_ALICEBLUE             0xF0F8FF  //爱丽丝蓝
#define COLOR_STEELBLUE             0x4682B4  //钢蓝
#define COLOR_LIGHTSKYBLUE          0x87CEFA  //淡蓝
#define COLOR_SKYBLUE               0x87CEEB  //天蓝
#define COLOR_DEEPSKYBLUE           0x00BFFF  //深天
#define COLOR_LIGHTBLUE             0xADD8E6  //淡蓝
#define COLOR_POWDERBLUE            0xB0E0E6
#define COLOR_CADETBLUE             0x5F9EA0  //军校
#define COLOR_AZURE                 0xF0FFFF  //蔚蓝
#define COLOR_LIGHTCYAN             0xE1FFFF  //淡青
#define COLOR_PALETURQUOISE         0xAFEEEE  //苍白的绿宝石
#define COLOR_CYAN                  0x00FFFF  //青色
#define COLOR_AQUA                  0x00FFFF  //水绿
#define COLOR_DARKTURQUOISE         0x00CED1  //深绿宝石
#define COLOR_DARKSLATEGRAY         0x2F4F4F  //深石板灰
#define COLOR_DARKCYAN              0x008B8B  //深青
#define COLOR_TEAL                  0x008080  //水鸭
#define COLOR_MEDIUMTURQUOISE       0x48D1CC  //适中的绿宝石
#define COLOR_LIGHTSEAGREEN         0x20B2AA  //浅海洋绿
#define COLOR_TURQUOISE             0x40E0D0  //绿宝
#define COLOR_AUQAMARIN             0x7FFFAA  //绿玉\碧绿
#define COLOR_MEDIUMAQUAMARINE      0x00FA9A  //适中的碧绿色
#define COLOR_MEDIUMSPRINGGREEN     0x00FF7F  //适中的春天的绿色
#define COLOR_MINTCREAM             0xF5FFFA  //薄荷奶油
#define COLOR_SPRINGGREEN           0x3CB371  //春天的绿
#define COLOR_SEAGREEN              0x2E8B57  //海洋
#define COLOR_HONEYDEW              0xF0FFF0  //蜂蜜
#define COLOR_LIGHTGREEN            0x90EE90  //淡绿
#define COLOR_PALEGREEN             0x98FB98  //苍白的绿
#define COLOR_DARKSEAGREEN          0x8FBC8F  //深海洋绿
#define COLOR_LIMEGREEN             0x32CD32  //酸绿
#define COLOR_LIME                  0x00FF00  //酸色
#define COLOR_FORESTGREEN           0x228B22  //林绿
#define COLOR_GREEN                 0x008000
#define COLOR_DARKGREEN             0x006400  //深绿
#define COLOR_CHARTREUSE            0x7FFF00  //查特酒绿
#define COLOR_LAWNGREEN             0x7CFC00  //草坪
#define COLOR_GREENYELLOW           0xADFF2F  //绿黄
#define COLOR_OLIVEDRAB             0x556B2F  //橄土褐色
#define COLOR_BEIGE                 0xF5F5DC  //米色(浅色)
#define COLOR_LIGHTGOLDENRODYELLOW  0xFAFAD2  //浅麒麟黄
#define COLOR_IVORY                 0xFFFFF0  //象牙
#define COLOR_LIGHTYELLOW           0xFFFFE0  //浅黄
#define COLOR_YELLOW                0xFFFF00
#define COLOR_OLIVE                 0x808000  //橄
#define COLOR_DARKKHAKI             0xBDB76B  //深卡其布
#define COLOR_LEMONCHIFFON          0xFFFACD  //柠?薄纱
#define COLOR_PALEGODENROD          0xEEE8AA  //灰麒
#define COLOR_KHAKI                 0xF0E68C  //卡其
#define COLOR_GOLD                  0xFFD700
#define COLOR_CORNISLK              0xFFF8DC  //玉米
#define COLOR_GOLDENROD             0xDAA520  //秋麒
#define COLOR_FLORALWHITE           0xFFFAF0  //花的白色
#define COLOR_OLDLACE               0xFDF5E6  //老饰
#define COLOR_WHEAT                 0xF5DEB3  //小麦
#define COLOR_MOCCASIN              0xFFE4B5  //鹿皮
#define COLOR_ORANGE                0xFFA500  //橙色
#define COLOR_PAPAYAWHIP            0xFFEFD5  //木瓜
#define COLOR_BLANCHEDALMOND        0xFFEBCD  //漂白的杏
#define COLOR_NAVAJOWHITE           0xFFDEAD  //纳瓦霍白
#define COLOR_ANTIQUEWHITE          0xFAEBD7  //古代的白
#define COLOR_TAN                   0xD2B48C  //晒黑
#define COLOR_BRULYWOOD             0xDEB887  //结实的树
#define COLOR_BISQUE                0xFFE4C4  //(浓汤)乳脂,茄等
#define COLOR_DARKORANGE            0xFF8C00  //深色
#define COLOR_LINEN                 0xFAF0E6  //亚麻
#define COLOR_PERU                  0xCD853F  //秘鲁
#define COLOR_PEACHPUFF             0xFFDAB9  //桃色
#define COLOR_SANDYBROWN            0xF4A460  //沙色
#define COLOR_CHOCOLATE             0xD2691E  //巧克
#define COLOR_SADDLEBROWN           0x8B4513  //鞍色
#define COLOR_SEASHELL              0xFFF5EE  //海贝
#define COLOR_SIENNA                0xA0522D  //黄土
#define COLOR_LIGHTSALMON           0xFFA07A  //浅鲜(鲑鱼)
#define COLOR_CORAL                 0xFF7F50  //珊瑚
#define COLOR_ORANGERED             0xFF4500  //橙红
#define COLOR_DARKSALMON            0xE9967A  //深鲜(鲑鱼)
#define COLOR_TOMATO                0xFF6347
#define COLOR_MISTYROSE             0xFFE4E1  //薄雾
#define COLOR_SALMON                0xFA8072  //鲜肉(鲑鱼)
#define COLOR_SNOW                  0xFFFAFA
#define COLOR_LIGHTCORAL            0xF08080  //淡珊瑚色
#define COLOR_ROSYBROWN             0xBC8F8F  //瑰色
#define COLOR_INDIANRED             0xCD5C5C  //印度
#define COLOR_RED                   0xFF0000
#define COLOR_BROWN                 0xA52A2A  //棕色
#define COLOR_FIREBRICK             0xB22222  //耐火
#define COLOR_DARKRED               0x8B0000  //深红
#define COLOR_MAROON                0x800000  //栗色
#define COLOR_WHITE                 0xFFFFFF
#define COLOR_WHITESMOKE            0xF5F5F5  //白烟
#define COLOR_GAINSBORO             0xDCDCDC  //灰色
#define COLOR_LIGHTGREY             0xD3D3D3  //浅灰
#define COLOR_SILVER                0xC0C0C0  //银白
#define COLOR_DARKGRAY              0xA9A9A9  //深灰
#define COLOR_GRAY                  0x808080  //灰色
#define COLOR_DIMGRAY               0x696969  //暗淡的灰
#define COLOR_BLACK                 0x000000

//preset color list
#ifdef LED_COLOR_PIN
  #define LED_COLOR_NUM 9
  #define LED_IDLE 2

  extern const LABEL itemLedcolor[LED_COLOR_NUM];

  extern const uint32_t led_color[LED_COLOR_NUM];

  void knob_LED_Init(void);
  void knob_LED_DeInit(void);
  void WS2812_Send_DAT(uint32_t ws2812_dat);
#endif

#ifdef __cplusplus
}
#endif

#endif
